
import {getRemote,postRemote,rebuilderResultRemote } from '../../utils/request.js'

export function template (data = {}, header = {} ,fixed = {}){
	fixed = {
	}
	return   getRemote ('xxx',data,header,fixed)
}

export function login (data = {}, header = {} ,fixed = {}){
	fixed = {
		siteId: '0002',
		verifyCode:"" ,
		encrypted: true,
		language: "zh_CN",
		expiration: 10, // 有效期
	}
	return   getRemote ('/api/user/login.shtml',data,header,fixed)
}

// 生成测试答案
export function generateAnswerTest (data = {}, header = {} ,fixed = {}){
	return  getRemote('/api/activityRegister/generateAnswerTest.shtml',data,header,fixed)
}
// 查询班级信息
export function getBasicEntityPage (data = {}, header = {}, fixed = {}){
	fixed = {
		page: 1,
		pageSize: 10,
		activity_type: 'CLASS',
		tag_id: 'KRHNRTPJYX4000',
		hide_register: false
	}
	return  getRemote('/api/bdm/activity/getBasicEntityPage/activity_.shtml',data,header,fixed)
}
// 提交答案
export function submitTestAnswerTrue (data = {}, header = {} , fixed = {} ){
	return  postRemote('/api/bdm/activity/getBasicEntityPage/activity_.shtml',data,header,fixed)
}
// 查询答案
export function queryTestAnswerDetails (data = {}, header = {} , fixed = {} ){
	return  getRemote('/api/activityRegister/queryTestAnswerDetails.shtml',data,header,fixed)
}
// 查询激活的模块
export function queryLearnerActivityModule (data = {}, header = {} , fixed = {} ){
	return  getRemote('/api/activityRegister/queryLearnerActivityModule.shtml',data,header,fixed)
}
// 激活模块
export function learnActivityModule (data = {}, header = {} , fixed = {} ){
	return  getRemote('/api/activityRegister/learnActivityModule.shtml',data,header,fixed)
}
// 激活模块
export function  learnVideoAudioDocumentImgText(data = {}, header = {} , fixed = {} ){
	return  getRemote('/api/activityRegister/learnVideoAudioDocumentImgText.shtml',data,header,fixed)
}
// 查询用户信息
export async function  queryLoginInfo(data = {}, header = {} , fixed = {} ){
	fixed = {
		isGetLoginInfo: true
	}
	 return  await  getRemote('/api/user/queryLoginInfo.shtml',data,header,fixed)
}
// 查询用户资料 
export async function  queryPersonalInfo(data = {}, header = {} , fixed = {} ){
	 return  await  getRemote('/api/user/queryPersonalInfo.shtml',data,header,fixed)
}

// 查询我的班级信息资料 
export async function  queryMyActivityPage(data = {}, header = {} , fixed = {} ){
	fixed = {
		page: 1,
		pageSize: 10,
		activity_type: 'CLASS' ,  //班级
		query_way: 'recently_learn' 
	}
	// page: 1
	// pageSize: 10
	// activity_type: CLASS   //班级
	// query_way: recently_learn （最近学习） ||  approving （正在审批） || my_collect (我的收藏)
	 return  await  getRemote('/api/activityRegister/queryMyActivityPage.shtml',data,header,fixed)
}
